import java.util.*;

public class A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while(t-- > 0 ){
            int n = sc.nextInt();
            int a = sc.nextInt();
            int q = sc.nextInt();
            String s = sc.nextLine();
            int cntp = 0;
            int cnt = a;
            int flag = 0;
            if(n == a){
                System.out.println("YES");
            }else{
                for(int i = 0; i < s.length(); i++){
                    if(s.charAt(i) == '+'){
                        cntp++;
                        cnt++;
                    }
                    else{
                        cnt--;
                    }
                    if(cnt == n){
                        flag = 1;
                        break;
                    }
                }
            }
            if(flag == 1){
                System.out.println();
            }
        }
    }
}
